package com.feign.controller;

import com.feign.feign.NacosFeign;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
  @Resource
  private NacosFeign nacosFeign;

  @GetMapping("demo")
  public String demo(String name) {
    return nacosFeign.hello(name);
  }

}
